widget: Move frame clock handling to vfunc
authorBenjamin Otte <otte@redhat.com>
Wed, 11 Apr 2018 01:03:35 +0000 (03:03 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 11 Apr 2018 01:16:34 +0000 (03:16 +0200)
commit2abf0822319b6f77c1399a25134c812b4fa4f400
tree74165a65add572494ce348c229e9301556ced0c9
parent7ef8cb652b8b86384043b57ea556a31e62128448
widget: Move frame clock handling to vfunc

Instead of connecting to / disconnecting from the frame clock, do it
inside the vfuncs next to changing the priv->realized boolean.

This removes a race between those 2 cases that could cause child
widgets' unrealize handlers to reconnect this widget to the frame clock
because it was still marked as realize when the widget had already
disconnected from the frame clock.

Fixes #168
gtk/gtkwidget.c